export const constantRouterMap = [
  {
    path: "/",
    redirect: "/user/new/main",
    meta: {
      type: "user",
      icon: "el-icon-star-off",
      title: "最新动态",
    },
    children: [
      {
        path: "main",
        meta: { title: "最新动态" },
      },
    ],
  },
  {
    path: "/user/social",
    redirect: "/user/social/main",
    meta: {
      type: "user",
      icon: "el-icon-mobile-phone",
      title: "社交圈",
    },
    children: [
      {
        path: "main",
        meta: { title: "社交圈" },
      },
      {
        path: "details/:name",
        meta: { title: "用户资料" },
      },
    ],
  },
  {
    path: "/user/blog",
    redirect: "/user/blog/main",
    meta: {
      type: "user",
      icon: "el-icon-edit-outline",
      title: "博客列表",
    },
    children: [
      {
        path: "main",
        meta: { title: "博客列表" },
      },
      {
        path: "add",
        meta: { title: "发表博客" },
      },
      {
        path: "edit/:id",
        meta: { title: "编辑博客" },
      },
      {
        path: "details/:id",
        meta: { title: "博客详情" },
      },
    ],
  },
  {
    path: "/user/project",
    redirect: "/user/project/main",
    meta: {
      type: "user",
      icon: "el-icon-service",
      title: "开源项目",
    },
    children: [
      {
        path: "main",
        meta: { title: "项目列表" },
      },
      {
        path: "details/:name",
        meta: { title: "项目详情" },
      },
    ],
  },
];
